Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: stb_sprintf-devel | Distribution: Fedora Project |
Version: 1.10^20230129git5736b15 | Vendor: Fedora Project |
Release: 0.7.fc39 | Build date: Sat Jul 22 04:42:04 2023 |
Group: Unspecified | Build host: buildvm-x86-16.iad2.fedoraproject.org |
Size: 60750 | Source RPM: stb-0^20230129git5736b15-0.7.fc39.src.rpm |
Packager: Fedora Project | |
Url: https://github.com/nothings/stb | |
Summary: Fast sprintf, snprintf for C/C++ |
This is a full sprintf replacement that supports everything that the C runtime sprintfs support, including float/double, 64-bit integers, hex floats, field parameters (%*.*d stuff), length reads backs, etc. Why would you need this if sprintf already exists? Well, first off, it’s *much* faster (see below). It’s also much smaller than the CRT versions code-space-wise. We’ve also added some simple improvements that are super handy (commas in thousands, callbacks at buffer full, for example). Finally, the format strings for MSVC and GCC differ for 64-bit integers (among other small things), so this lets you use the same format strings in cross platform code. It uses the standard single file trick of being both the header file and the source itself. If you just include it normally, you just get the header file function definitions. To get the code, you include it from a C or C++ file and define STB_SPRINTF_IMPLEMENTATION first. It only uses va_args macros from the C runtime to do its work. It does cast doubles to S64s and shifts and divides U64s, which does drag in CRT code on most platforms. It compiles to roughly 8K with float support, and 4K without. As a comparison, when using MSVC static libs, calling sprintf drags in 16K.
MIT OR Unlicense
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0^20230129git5736b15-0.7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Jun 18 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0^20230129git5736b15-0.6 - Use new (rpm 4.17.1+) bcond style * Sat Jun 03 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0^20230129git5736b15-0.5 - Remove explicit %set_build_flags, not needed since F36 * Sat Feb 25 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0^20230129git5736b15-0.2 - Fix null pointer dereference in stb_image * Mon Jan 30 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0^20230129git5736b15-0.1 - Update to 5736b1 (version history and README updates) * Sun Jan 29 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0^20230129git6199bf7-0.1 - Update to 6199bf7 (stb_image 2.28) - Security-related patches for stb_image have been merged upstream, and there are other bugfixes. * Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0^20220908git8b5f1f3-0.5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Nov 30 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0^20220908git8b5f1f3-0.4 - Patch in a candidate fix for ossfuzz issue 24232 - Improves handling of certain invalid PNGs by stb_image * Sat Sep 10 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0^20220908git8b5f1f3-0.3 - A few improved descriptions * Sat Sep 10 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0^20220908git8b5f1f3-0.2 - Improved summaries based on upstream’s README.md * Fri Sep 09 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0^20220908git8b5f1f3-0.1 - Update to 8b5f1f3 - The stb_perlin-devel subpackage has been restored, as upstream believes all relevant patents are now expired. * Fri Sep 09 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0^20210910gitaf1a5bc-0.5 - Update License to SPDX * Thu Jul 28 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0^20210910gitaf1a5bc-0.4 - Reword spec file note on stb_include * Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0^20210910gitaf1a5bc-0.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Apr 20 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0^20210910gitaf1a5bc-0.2 - Security fix for CVE-2022-28041 (fix RHBZ#2077020, fix RBHZ#2077019) * Sat Apr 16 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0^20210910gitaf1a5bc-0.1 - Switch to modern snapshot versioning * Sat Apr 16 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0-0.10 - Stop numbering patches * Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Oct 26 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0-0.8 - Apply a patch for warnings in stb_herringbone_wang_tile * Fri Oct 22 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0-0.7 - Security fix for CVE-2021-42715 and CVE-2021-42716 * Fri Oct 22 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0-0.6 - Update to af1a5bc * Fri Oct 22 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0-0.5 - Reduce macro indirection in the spec file * Thu Sep 09 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0-0.4 - Update to c0c9826 (fix RHBZ#2002436) * Tue Aug 24 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0-0.3 - Fix signature of dummy realloc() for STB_VORBIS_NO_CRT * Mon Aug 23 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0-0.2 - Use symlinks so including "stb_foo.h" and "stb/stb_foo.h" both work * Mon Aug 23 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0-0.1 - Initial package
/usr/include/stb /usr/include/stb/stb_sprintf.h /usr/include/stb_sprintf.h /usr/share/licenses/stb_sprintf-devel /usr/share/licenses/stb_sprintf-devel/LICENSE
Generated by rpm2html 1.8.1
Fabrice Bellet, Wed Jun 4 19:51:45 2025